using System.Collections.Generic;
namespace GameServer.Common.Physics
{
    public class ForceEngine
    {

        static public Vector2 addVectors(List<Vector2> forceVectors)
        {
            Vector2 vectorSum = new Vector2();
            for (int i = 0; i < forceVectors.Count; i++)
            {
                vectorSum.x += forceVectors[i].x;
                vectorSum.y += forceVectors[i].y;
            }
            return vectorSum;
        }


        public static Vector2 resultantVector_Perpendicular(List<Vector2> forceVectors)
        {
            //			var resultant:Vector2=new Vector2();
            //			for (var i:int=0; i<forceVectors.length; i++){
            //				resultant.x += Vector2(forceVectors[i]).x;
            //				resultant.y += Vector2(forceVectors[i]).y;
            //			}
            //			return resultant;
            return new Vector2();
        }

    }
}
